#include "NewGameWindow.hh"

using namespace Gui;
using namespace Network;

NewGameWindow::NewGameWindow(QWidget *parent)
    : QWidget(parent)
{
	ui.setupUi(this);
}

NewGameWindow::~NewGameWindow()
{

}

void NewGameWindow::new_game()
{
	QString name;
	name = ui.nameLine->text();
	u2 min, max;
	min = ui.minLine->text().toUShort();
	max = ui.maxLine->text().toUShort();


	//signal küldés xmlClient-nek, ha felh. lenyomta a gombot
	emit send_new_game(name, min, max);

	emit close();
}
